package org.swift.mashup.engine.model;

import java.util.Map;

import org.apache.log4j.Logger;

public class FromVariable extends BaseFrom {
	
	public final static Logger log = Logger.getLogger(FromVariable.class);
	
	@SuppressWarnings("unused")
	private String name; 
	
	public FromVariable(String name, String source) {
		super(source);
		this.name = name;
	}
	
	public Object getValue(Map<String, ?> parameters, Map<String, ?> restMap) {
		return parameters.get(getSource());
	}

	public Object getValue(Map<String, ?> parameters, Map<String, ?> restMap, Map<String,String> headerMap) {
		return getValue(parameters, restMap);
	}
}
